package com.emm.yixun.report.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.report.mapper.BrokerRankingMapper;
import com.emm.yixun.report.domain.BrokerRanking;
import com.emm.yixun.report.domain.dto.BrokerRankingEntity;
import com.emm.yixun.report.service.IBrokerRankingService;
import com.baomidou.framework.service.impl.SuperServiceImpl;

/**
 *
 * BrokerRanking 表数据服务层接口实现类
 *
 */
@Service
public class BrokerRankingServiceImpl extends SuperServiceImpl<BrokerRankingMapper, BrokerRanking> implements IBrokerRankingService {
	@Autowired
	private BrokerRankingMapper brokerRankingMapper;
	
	/**
	 * 经纪人业绩排行榜
	 * @param merchantId
	 * @return
	 */
	@Override
	public List<BrokerRankingEntity> selectBrokerRankingInfo(long merchantId, String cityId) {
		return brokerRankingMapper.selectBrokerRankingInfo(merchantId, cityId);
	}

	/**
	 * 经纪人业绩排行榜 查询当前商户下的城市列表
	 * @param merchantId
	 * @return
	 */
	@Override
	public List<BrokerRankingEntity> selectCityListByMerchantId(long merchantId) {
		return brokerRankingMapper.selectCityListByMerchantId(merchantId);
	}

}